package com.coolbi.onsupai.core.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description AccountFund Entity 客户账户信息类
 * @author for2cold
 * @codeDate 2012-6-21 下午06:24:36
 * 
 */
public class AccountFund implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 客户ID */
	private Long customerId;
	/** 账户资金 */
	private double accountBalance;
	/** 冻结资金 */
	private double frozenAmount;
	/** 可用资金 */
	private double availableBalance;
	/** 账户状态 */
	private Boolean accountStatus;
	/** 创建时间 */
	private Date createDate;
	/** 修改时间 */
	private Date modifyDate;
	/** 客户对象 */
	private Customer customer;

	/** 客户ID */
	public Long getCustomerId() {
		return customerId;
	}

	/** 客户ID */
	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	/** 账户资金 */
	public double getAccountBalance() {
		return accountBalance;
	}

	/** 账户资金 */
	public void setAccountBalance(double accountBalance) {
		this.accountBalance = accountBalance;
	}

	/** 冻结资金 */
	public double getFrozenAmount() {
		return frozenAmount;
	}

	/** 冻结资金 */
	public void setFrozenAmount(double frozenAmount) {
		this.frozenAmount = frozenAmount;
	}

	/** 可用资金 */
	public double getAvailableBalance() {
		this.availableBalance = this.accountBalance - this.frozenAmount;
		return availableBalance;
	}

	/** 可用资金 */
	public void setAvailableBalance(double availableBalance) {
		this.availableBalance = availableBalance;
	}

	/** 账户状态 */
	public Boolean getAccountStatus() {
		return accountStatus;
	}

	/** 账户状态 */
	public void setAccountStatus(Boolean accountStatus) {
		this.accountStatus = accountStatus;
	}

	/** 创建时间 */
	public Date getCreateDate() {
		return createDate;
	}

	/** 创建时间 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/** 修改时间 */
	public Date getModifyDate() {
		return modifyDate;
	}

	/** 修改时间 */
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	/** 客户对象 */
	public Customer getCustomer() {
		return customer;
	}

	/** 客户对象 */
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
}
